package com.delu.feign;

import com.delu.data.Result;
import com.delu.dto.CouponDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "delu-rental-payment-service")
public interface CouponFeign {

    @GetMapping("couponController")
    Result<CouponDTO> selectCoupon(@RequestParam("couponId")Integer couponId);


    @PostMapping("/couponController/selectAll")
    Result<CouponDTO>  selectCouponList();

}
